export default{
    namespaced : true,
    state:{
        bannerList : [],
        navList : [],
        newList : [],
        bastBanner : [],
        detailList : [],
    },
    //修改数据
    mutations:{
        setBanner(state,value){
            state.bannerList = value;
        },
        setNav(state,value){
            state.navList = value;
        },
        setNew(state,value){
           state.newList = value;
        },
        setBastBanner(state,value){
            state.bastBanner = value;
        },
        setDetailList(state,value){
            state.detailList = value;
        }
    },
    //提交修改的行为
    actions:{
       setBannerAsync(content,value){
           content.commit('setBanner',value)
       },
       setNavAsync(content,value){
           content.commit('setNav',value)
       },
       setNewAsync(content,value){
           content.commit('setNew',value)
       },
       setBastBannerAsync(content,value){
        content.commit('setBastBanner',value)
      },
      setDetailListAsync(content,value){
          content.commit('setDetailList',value);
      }
    },
    modules:{
        
    }
}